package com.xyj.week04;

/**
 * @author GuXiaoYao
 * @version 1.0.0
 * @since 2021/9/9
 */
public class T4 {


    public static void main(String[] args) {
        System.out.println( calculate(6));
    }

    public static int calculate(int num){
        if (num==0){
            return 0;
        }
        if (num==1){
            return 1;
        }
        return calculate(num-1)+calculate(num-2);
    }
}
